package com.neusoft.neuiotms.dcom.repository.malfunction;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.malfunction.MalfunctionSecondLine;

public interface MalfunctionSecondLineRepository extends JpaRepository<MalfunctionSecondLine, Long> {

    MalfunctionSecondLine findByWorkNumAndTaskId(String workNum, String taskId);

    MalfunctionSecondLine findTopByWorkNumOrderByIdDesc(String workNum);

    List<MalfunctionSecondLine> findByOperatorCodeInOrTransferUserNameIn(List<String> operatorCodeArr,
            List<String> transferUserNameArr);

}
